package com.rs.model;

import java.io.Serializable;
import java.util.Date;

import com.rs.util.TimeTypeConversionUtil;

/**
 * 报销
 * @author HuJie
 *
 */
public class Reimburse implements Serializable {
	private Integer re_id;//报销ID

	private Integer re_uid;//用户id

	private String re_uname;//用户姓名

	private Double re_money;//报销金额（元）

	private Date re_time;//报销日期

	private Integer re_tyid;//报销类别id

	private String re_tname;//报销类别名称

	private String re_reason;//费用明细

	private String re_img;//费用图片地址

	private Integer re_auid;//审批人id

	private String re_auname;//审批人姓名

	private Integer re_audit;//审核状态（0：待审核，1：审核通过，2：审核未通过）

	private Integer pageNum;

	private Date startTime;

	private Date endTime;

	private static final long serialVersionUID = 1L;

	//转为数组
	public Object[] toObjects(int leng) {
		Object[] ary = new Object[leng];

		ary[0] = re_id;

		ary[1] = re_uname;

		ary[2] = re_tname;

		ary[3] = re_money + "元";

		ary[4] = TimeTypeConversionUtil.getStringDate(re_time);

		switch (re_audit) {
		case 0:
			ary[5] = "待审核";
			break;
		case 1:
			ary[5] = "通过";
			break;
		case 2:
			ary[5] = "驳回";
			break;

		}

		ary[6] = "审核";

		ary[7] = "查看";

		return ary;
	}

	public Integer getRe_id() {
		return re_id;
	}

	public void setRe_id(Integer re_id) {
		this.re_id = re_id;
	}

	public Integer getRe_uid() {
		return re_uid;
	}

	public void setRe_uid(Integer re_uid) {
		this.re_uid = re_uid;
	}

	public String getRe_uname() {
		return re_uname;
	}

	public void setRe_uname(String re_uname) {
		this.re_uname = re_uname;
	}

	public Double getRe_money() {
		return re_money;
	}

	public void setRe_money(Double re_money) {
		this.re_money = re_money;
	}

	public Date getRe_time() {
		return re_time;
	}

	public void setRe_time(Date re_time) {
		this.re_time = re_time;
	}

	public Integer getRe_tyid() {
		return re_tyid;
	}

	public void setRe_tyid(Integer re_tyid) {
		this.re_tyid = re_tyid;
	}

	public String getRe_tname() {
		return re_tname;
	}

	public void setRe_tname(String re_tname) {
		this.re_tname = re_tname;
	}

	public String getRe_reason() {
		return re_reason;
	}

	public void setRe_reason(String re_reason) {
		this.re_reason = re_reason;
	}

	public String getRe_img() {
		return re_img;
	}

	public void setRe_img(String re_img) {
		this.re_img = re_img;
	}

	public Integer getRe_auid() {
		return re_auid;
	}

	public void setRe_auid(Integer re_auid) {
		this.re_auid = re_auid;
	}

	public String getRe_auname() {
		return re_auname;
	}

	public void setRe_auname(String re_auname) {
		this.re_auname = re_auname;
	}

	public Integer getRe_audit() {
		return re_audit;
	}

	public void setRe_audit(Integer re_audit) {
		this.re_audit = re_audit;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Override
	public String toString() {
		return "Reimburse [re_id=" + re_id + ", re_uid=" + re_uid + ", re_uname=" + re_uname + ", re_money=" + re_money
				+ ", re_time=" + re_time + ", re_tyid=" + re_tyid + ", re_tname=" + re_tname + ", re_reason="
				+ re_reason + ", re_img=" + re_img + ", re_auid=" + re_auid + ", re_auname=" + re_auname + ", re_audit="
				+ re_audit + ", pageNum=" + pageNum + ", startTime=" + startTime + ", endTime=" + endTime + "]";
	}

}